﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="top.aspx.cs" Inherits="admin_common_top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>

<title>Welcome to Nestle China&gt;大众</title>

<style type="text/css">
boady,p,dl,dt,dd,form,ul{margin:0; padding:0;}
#adminmain{margin-top:-10px;background-color:#869ccd;}
#adminmain .aclear{ clear:both; height:1px; overflow:hidden;}
#adminmain .admheader{ height:40px; background-color: #becef2; margin:5 0 0 0; padding:0;}
#adminmain .admheader dl dt{ float:left;padding-left:13px;padding-top:5px;font-size:18px;}
#adminmain .admheader dl dd{ float:right;padding-right:16px;}
#adminmain .admheader dl dd image{ border:none;}
#adminmain ul.admeun{ margin:0; padding:0;}
#adminmain ul.admeun li{ list-style:none; float:left; height:30px; line-height:34px; background:url(../images/adm_bkline.gif) top right no-repeat; width:90px; font-size:13px;margin-top:-1px;}
#adminmain ul.admeun :hover{background-color:#a1c5e9;}
#adminmain ul.admeun li a:hover{color:black;}
#adminmain ul.admeun li a{text-decoration:none;color:white;font-weight:550;width:80px ;height:25px;margin-left:18px;}
#adminmain ul.admeun li a span{margin-left:11px;}
</style>


</head>
<body marginheight="11" topmargin="11" marginwidth="0" leftmargin="0"> 
<div id="adminmain">
	<div class="admheader">
		<dl>
			<dt>一汽大众</dt>
			<dd><a href="#"><img height="40px" src="../images/1.gif" border=0></a></dd>
		</dl>
		
	</div>
	<div class="aclear"></div>	
	<ul class="admeun">
			<%
                if (!isDynamicPopedom())
                {
				if(PopedomValidateHtml("001","show")){
			%>
				    <li><a href="../column/managerFrame.aspx" target="_top">栏目管理</a></li>	
			<%
					}
                if (PopedomValidateHtml("002", "show"))
                {
				%>
				    <li><a href="../infomation/managerFrame.aspx" target="_top">内容管理</a></li>
					<%
					}
                if (PopedomValidateHtml("003", "show"))
                {
			%>
				    <li><a href="../manager/managerFrame.aspx" target="_top">系统管理</a></li>
					<%
	}	
}
else{ 	
  	%>
		<li><a href="../column/managerFrame.aspx" target="_top">栏目管理</a></li>
		<li><a href="../infomation/managerFrame.aspx" target="_top">内容管理</a></li>
		<li><a href="../manager/managerFrame.aspx" target="_top">系统管理</a></li>
			    
<%}%>
		<li><a href="../logout.aspx" target="_top"><span>退出</span></a></li>
	</ul>
	<div style="float:right;padding-top:10px;padding-right:20px;color:white;font-weight:550;font-size:14px;"><asp:Label ID="username" runat="server" /> / <span id="time"></span></div>
	<div class="aclear"></div>	
    
</div>
<script type="text/javascript">
    
    function getNowTime(){
        //if(window.XMLHttpRequest){
        //取得当前时间   
        var now= new Date();
        
        var year=now.getYear();   
          if(year<2000){
            year += 1900;
        } 
        var month=addz(now.getMonth()+1);   
        var day=addz(now.getDate());   
        var hour=addz(now.getHours());   
        var minute=addz(now.getMinutes());   
        var second=addz(now.getSeconds());   
        var nowdate=year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;   
        document.getElementById("time").innerHTML = nowdate; 
        //} 
    }
    function addz(val){
        val = val + "";
       
        if(val.length<2){
            return "0"+val;
        }
        return val;
    }
    setInterval("getNowTime()",1000);
</script>
</body>
</html>
